@extends('layout.layout')
@section('content')
<div class="widget">
<div class="widget">
                        <div class="widget-header">
                            <h4>用户添加</h4>
                        </div>
                        <div class="widget-content">
                                @if(session('error'))
                                        {{session('error')}}
                                @endif
                                @if (count($errors) > 0)
                                <div class="alert alert-error">
                                <span class="close" data-dismiss="alert">×</span>
                                    <ul>
                                        @foreach ($errors->all() as $error)
                                            <li>{{ $error }}</li>

                                        @endforeach
                                    </ul>

                                </div>
                                @endif
                            <form class="form-horizontal" action="{{url('/admin/user/insert')}}" method="post" enctype="multipart/form-data">
                                <div class="widget-header">
                                    <label class="control-label">邮箱/账号</label>
                                    <div class="controls"><input name="email" type="email"  placeholder="123456@163.com"></div>
                                </div>
                                <div class="widget-header">
                                    <label class="control-label">密码</label>
                                    <div class="controls"><input name="password" type="password"  placeholder="请输入密码"> </div>
                                </div>
                                <div class="widget-header">
                                    <label class="control-label">手机号</label>
                                    <div class="controls"><input name="phone" type="text"  placeholder="150*****074"></div>
                                </div>
                                <div class="widget-header">
                                    <label class="control-label">身份证</label>
                                    <div class="controls"><input name="id_card" type="text"  placeholder="130********441"></div>
                                </div>
                                <div class="widget-header">
                                    <label class="control-label">游戏昵称</label>
                                    <div class="controls"><input name="username" type="text"  placeholder="游戏昵称"></div>
                                </div>
                                
                                <div class="widget-header">
                                    <label class="control-label">头像</label>
                                    <div class="controls"><input name="pic" type="file"  placeholder=""></div>
                                      
                                </div>
        
                               <div style="margin-left:180px;">
                                <button  class="btn btn-primary btn-large  icon-ok">添加</button>
                                <button type="reset" class="btn btn-large icon-refresh">重置</button>
                                 {{csrf_field()}}
                                </div>
                               
                                
                                
                            </form>
                        </div>
                    </div>
                    </div>
@endsection